$().ready(function() {
    
    var url = location.href;
    
    var baseURL = url.substring(0, url.indexOf('/', 14));
    var directory = "";
    
    if (baseURL == 'http://localhost' || baseURL == 'http://3kdigitaldesigns.com')
    {
        directory = '/evd';
    }
    
    var url = baseURL + directory + '/article/get-tags';
    
    $('textarea.tinymce').tinymce({
        // Location of TinyMCE script
        script_url : baseURL + directory + '/themes/js/tiny_mce/tiny_mce.js',

        // General options
        theme : "advanced",

        // Theme options
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough",
		theme_advanced_buttons2 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
	
		// Example content CSS (should be your site CSS)
		content_css : baseURL + directory + '/themes/css/tinymce/content.css',
		
		
    });
    
    //$.facebox('Loading contents');
    
    $("#autosuggest").autoSuggest(url, {selectedItemProp: "name", searchObjProps: "name", startText: "Add a tag"});
	
	$('.uniform').find ('input, select').uniform ();
    $('input, textarea').placeholder ();
});

// RYAN INPUTS sayop nih idk
// This should be entered sa controllers/article.php - bertrand.kintanar
// $data['load_forms'] = true;	
	
// this document.ready is already initialized above. so you just need to put the Dashboard.init(); inside the above function.
// the dashboard.init() only initializes some jquery calls. so i didn't call it. I just used the jquery calls that is of use to us like
// $('.uniform') and the placeholder. -- see above. - bertrand.kintanar
// $(document).ready ( function () 
//{
//	Dashboard.init ();
//});
	
	
	
	
	